<html>
<head>
    <title>
        Gestalt Sample: Attaching Events to DOM and Silverlight
    </title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/gestalt.js" type="text/javascript"></script>

</head>
<body>

<xml class="xaml" width="100" height="40">
    <Canvas>
        <Button x:Name="button1" Width="93" Height="29" Opacity="1" Content="Press Me!"></Button>
    </Canvas>
</xml>      

<p></p>

<button id="button2">Press Me!</button>

<script language="python">
def OnClick1(s,e):
    xaml.button1.Content = "Thanks!"

xaml.button1.Click += OnClick1

def OnClick2(s,e):
    document.button2.innerHTML = "Thanks!"
    
document.button2.AttachEvent("onclick", EventHandler[HtmlEventArgs](OnClick2))

</script>


</body>
</html>
    